static ShellRecorder *recorder = NULL;
static gboolean
-stop_recording_timeout (gpointer data)
+stop_recording_timeout (ClutterActor *stage)
{
if (recorder)
{
g_object_unref (recorder);
}
- clutter_main_quit ();
+ clutter_actor_destroy (stage);
return FALSE;
}
static void
-on_animation_completed (ClutterAnimation *animation)
+on_animation_completed (ClutterAnimation *animation,
+ ClutterStage *stage)
{
- g_timeout_add (1000, stop_recording_timeout, NULL);
+ g_timeout_add (1000, (GSourceFunc) stop_recording_timeout, stage);
}
static void
"y", 240.0,
NULL);
g_signal_connect (animation, "completed",
- G_CALLBACK (on_animation_completed), NULL);
+ G_CALLBACK (on_animation_completed), stage);
text = g_object_new (CLUTTER_TYPE_TEXT,
"text", "Blue",
clutter_main ();
- g_object_unref (stage);
-
return 0;
}